﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using SelfMadeMillionaire.Core;
using SelfMadeMillionaire.Core.Entities;
using SelfMadeMillionaire.Core.Enums;
using SelfMadeMillionaire.Core.Repositories;
using SelfMadeMillionaire.Core.Services;
using SelfMadeMillionaire.Core.Specifications;

namespace SelfMadeMillionaire.BLL.Services
{
	public class ReportsService : IReportsService
	{
		private readonly ISubscriberRepository _SubscriberRepository;

        public ReportsService(ISubscriberRepository SubscriberRepository)
		{
            _SubscriberRepository = SubscriberRepository;
		}

        public int NewUser(DateTime begDate, DateTime endDate, SubscriptionType? level)
		{
            return _SubscriberRepository.CountByDateCreate(begDate, endDate, level);
		}
	}
}